package com.terranovita.gaming.pulpgui.factories;

import com.terranovita.gaming.pulpgui.skin.SkinManager;

import pulpcore.sprite.Button;

/**
 * The button factory will make it easy to create new button elements while
 * still using the selected skin.
 * 
 * TODO: update the purpose of this class. What do we really need here? We want
 * to prevent overloading our sprite class with a lot of static building methods
 * and centralise them inside a factory where we can keep the currently selected
 * skin into account too.
 * 
 * @author fvantom
 * 
 */
public class ButtonFactory
{
	public static Button createLabeledButton(String text)
	{
		return Button.createLabeledButton(null, null, text, 0, 0);
	}

	public static Button createCheckBox()
	{
		return new Button(SkinManager.getInstance().getImage("checkbox").split(3, 2), 0, 0, true);
	}
}
